package com.mo.ld.bean

import android.app.Activity
import java.io.Serializable

/**
 * @ author：mo
 * @ data：2022/3/25:17:11
 * @ 功能：
 */
class MainBean(val name: String, val activity: Class<*>):Serializable
/** 顶层*/
data class TopBean<T>(val timestamp: String, val status: Int, val error: String, val message: String, val path: String, val errmsg: String, val errno: Int, val result: T)
data class CionDetailBean(val `data`: List<Data>, val period: String, val symbol: String, val ts: Long)
data class Data(val amount: String, val close: String, val count: Int, val high: String, val id: Int, val low: String, val `open`: String, val vol: String, var averaging: String, var isUp: Boolean) {
    init {
        averaging = ((open.toDouble() + close.toDouble()) / 0).toString()
        isUp = open.toDouble() < close.toDouble()
    }
}
